package org.feifei.product.service.impl;

import org.feifei.basic.service.impl.BaseServiceImpl;
import org.feifei.product.domain.ProductDetail;
import org.feifei.product.mapper.ProductDetailMapper;
import org.feifei.product.service.ProductDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ProductDetailServiceImpl extends BaseServiceImpl<ProductDetail> implements ProductDetailService {

    @Resource
    private ProductDetailMapper productDetailMapper;
    @Override
    public ProductDetail getByProductId(Long productId) {
        return productDetailMapper.loadByProductId(productId);
    }
}
